package com.example.strategy;

import java.math.BigDecimal;

/**
 * Created by fongjx on 2021/6/27.
 */
public class PromotionContext {

    private Strategy strategy;

    public PromotionContext(Strategy strategy) {
        this.strategy = strategy;
    }

    public BigDecimal count(ProductOrder productOrder){
        return strategy.countPrice(productOrder);
    }
}
